// 是不是对象
export const isObject = value => typeof value == 'object' && value !== null;
// 合并对象
export const extend = Object.assign;
//是不是数组
export const isArray = Array.isArray;
// 是不是函数
export const isFunction = value => typeof value === 'function';
// 是不是Number
export const isNumber = value => typeof value === 'number';
//是不是String
export const isString = value => typeof value === 'string';
// 是不是Integer整型
export const isInteger = value => (parseInt(value) + '') === value;

// 看下当前这个对象有没有这个属性
//Reflect.hasOwnProperty()
let hasOwnProperty = Object.prototype.hasOwnProperty;
export const hasOwn = (target,key) => hasOwnProperty.call(target,key);

// 判断两个值是否相等
export const hasChanged = (oldValue,newValue) => oldValue !== newValue;
